import request from '@/utils/request'

// 查询委外出厂列表
export function listOutFactory(query) {
    return request({
        url: '/business/outFactory/list',
        method: 'get',
        params: query
    })
}

// 查询委外出厂详细
export function getOutFactory(outFactoryId) {
    return request({
        url: '/business/outFactory/' + outFactoryId,
        method: 'get'
    })
}

// 新增委外出厂
export function addOutFactory(data) {
    return request({
        url: '/business/outFactory',
        method: 'post',
        data: data
    })
}

// 修改委外出厂
export function updateOutFactory(data) {
    return request({
        url: '/business/outFactory',
        method: 'put',
        data: data
    })
}

// 删除委外出厂
export function delOutFactory(outFactoryId) {
    return request({
        url: '/business/outFactory/' + outFactoryId,
        method: 'delete'
    })
}

// 导出委外出厂
export function exportOutFactory(query) {
    return request({
        url: '/business/outFactory/export',
        method: 'get',
        params: query
    })
}